package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;
import org.springframework.stereotype.Repository;

import java.util.List;

//套餐
@Repository
public interface SetmealService {
    //修改
    void update(Setmeal setmeal);
    //分页查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);
    //保存
    void save(Setmeal setmeal);
    //删除
    void deleteByIds(Long[] ids);
    //批量起售停售
    void findByIds(Integer status, Long[] ids);
    //回显套餐
    Setmeal findById(Long id);
    //返回套餐消息根据catetoryid
    List<Setmeal> findByCategoryId(Long categoryId, Integer status);

    void findByName(Long[] ids);

    Page<Setmeal> findByName(String name, Integer pageNum, Integer pageSize);
    //查询套餐菜品信息根据id
    List<Dish> getMealDish(Long id);
}
